home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q105 / 9 / 98.TXT < prev    next >
Text File  |  1993-11-16  |  3KB  |  97 lines

  1. DOCUMENT:Q105998  03-NOV-1993  [W_NT]
  2. TITLE   :Cannot PING Computer on Last Line of HOSTS File
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. ----------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12.  - Microsoft Windows NT Advanced Server version 3.1
  13. ----------------------------------------------------------------------
  14.  
  15. SYMPTOMS
  16. ========
  17.  
  18. If you add an entry to the HOSTS file (for TCP/IP utilities) and then
  19. try to use the PING command to access that computer, you may receive
  20. the following error message:
  21.  
  22.    <friendlyname>:Unknown Host
  23.  
  24. CAUSE
  25. =====
  26.  
  27. This error message may be caused by not having a carriage return after
  28. the last line in the HOSTS file. This problem usually occurs only when
  29. you try to communicate with the computer on the last line of the HOSTS
  30. file, because the other lines should have carriage returns.
  31.  
  32. NOTE: There may be numerous other causes for this error message.
  33.  
  34. RESOLUTION
  35. ==========
  36.  
  37. To avoid this error message, use Notepad (or any text editor) to edit
  38. the HOSTS file and add a carriage return to the last line. If you add
  39. a carriage return to the last line of the HOSTS file created above,
  40. the PING command works correctly.
  41.  
  42. For additional information on the HOSTS file in Windows NT, query on
  43. the following words in the Microsoft Knowledge Base:
  44.  
  45.    hosts and windows and nt
  46.  
  47. For additional information on the troubleshooting TCP/IP connectivity
  48. with Windows NT, query on the following words in the Microsoft
  49. Knowledge Base:
  50.  
  51.    tcp/ip and tshoot and windows and nt
  52.  
  53. MORE INFORMATION
  54. ================
  55.  
  56. Steps to Reproduce Problem
  57. --------------------------
  58.  
  59. 1. Rename the HOSTS file in the winnt\system32\drivers\etc\ directory
  60.    to HOSTS.OLD.
  61.  
  62.    NOTE: After testing, be sure to rename HOSTS.OLD back to HOSTS.
  63.  
  64. 2. Using Notepad, create a new HOSTS file with the following line:
  65.  
  66.    127.0.0.1   test   
  67.  
  68.    (Without a carriage return after "test.")
  69.  
  70. 3. Save the file as HOSTS in the winnt\system32\drivers\etc\
  71.    directory.
  72.  
  73. 4. Open a Command Prompt and enter the following command:
  74.  
  75.       ping test
  76.  
  77. You will receive the above error message.
  78.  
  79. Additional reference words: 3.10
  80. KBCategory:
  81. KBSubcategory: tpip
  82.  
  83. =============================================================================
  84.  
  85. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  86. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  87. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  88. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  89. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  90. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  91. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  92. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  93. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  94. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  95. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  96.  
  97. Copyright Microsoft Corporation 1993.